$(function () {

    getReviewers({});

    // 初始化页面上的 datetimepicker
    insDatetimePicker('.is-date');

    layui.use(['form', 'layer'], function () {
        var form = layui.form(),
            layer = layui.layer;

        form.on('select(action)', function (data) {
            if (data.value !== '权限变更') {
                $('.layui-form .permissions').addClass('hidden');
            } else {
                $('.layui-form .permissions').removeClass('hidden');
            }
            form.render();
        });
    });

});